﻿<dx:DXWindow x:Class="SQLQuery.UI.Comparsion.DataFilterColumnWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
        Title="选择要比较的列" 
        WindowStartupLocation="CenterScreen"
        Height="340" Width="384" KeyDown="DXWindow_KeyDown" MaxHeight="340" MaxWidth="384" WindowStyle="ToolWindow">
    <Window.Resources>
        <DataTemplate x:Key="listTemplate">
            <DockPanel>
                <TextBlock Text="{Binding ColumnName}"/>
                <TextBlock Text=" "/>
                <TextBlock Text="{Binding Primary}" Foreground="#FFC45B5B" />
            </DockPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <ListBox Height="233" HorizontalAlignment="Left" Margin="12,28,0,0" Name="listBox1" VerticalAlignment="Top" Width="153" ItemTemplate="{StaticResource listTemplate}" ItemsSource="{Binding DataFilterLeft}"/>
        <ListBox Height="233" HorizontalAlignment="Left" Margin="197,28,0,0" Name="listBox2" VerticalAlignment="Top" Width="153" ItemTemplate="{StaticResource listTemplate}" ItemsSource="{Binding DataFilterRight}"/>
        <dxe:ButtonEdit Name="btntoRight"  Margin="169,72,167,206" ShowText="False" AllowDefaultButton="False" Height="23" Width="25">
            <dxe:ButtonInfo GlyphKind="Custom" Content="&gt;" ButtonKind="Simple" Click="btntoRight_Click"/>
        </dxe:ButtonEdit>
        <dxe:ButtonEdit Name="btntoLeft" Margin="169,111,167,167" ShowText="False" AllowDefaultButton="False" Height="23" Width="25" >
            <dxe:ButtonInfo GlyphKind="Custom" Content="&lt;" ButtonKind="Simple" Click="btntoLeft_Click"/>
        </dxe:ButtonEdit>
        <dxe:ButtonEdit Name="btnAlltoRight" Margin="169,0,167,87" ShowText="False" AllowDefaultButton="False" Height="23" Width="25" VerticalAlignment="Bottom">
            <dxe:ButtonInfo GlyphKind="Custom" Content="&gt;&gt;" ButtonKind="Simple" Click="btnAlltoRight_Click"/>
        </dxe:ButtonEdit>
        <dxe:ButtonEdit Name="btnAlltoLeft" Margin="169,150,167,128" ShowText="False" AllowDefaultButton="False" Height="23" Width="25">
            <dxe:ButtonInfo GlyphKind="Custom" Content="&lt;&lt;" ButtonKind="Simple" Click="btnAlltoLeft_Click"/>
        </dxe:ButtonEdit>
        <dxe:ButtonEdit Name="btnOK" Margin="92,271,194,8" ShowText="False" AllowDefaultButton="False" Height="23" Width="75">
            <dxe:ButtonInfo GlyphKind="Custom" Content="确定" ButtonKind="Simple" Click="btnOK_Click"/>
        </dxe:ButtonEdit>
        <dxe:ButtonEdit Name="btnCanel" Margin="197,270,90,8" ShowText="False" AllowDefaultButton="False" Height="23" Width="75">
            <dxe:ButtonInfo GlyphKind="Custom" Content="取消" ButtonKind="Simple" Click="btnCanel_Click"/>
        </dxe:ButtonEdit>
        <!--<Button Content="&gt;" Height="23" HorizontalAlignment="Left" Margin="168,77,0,0" Name="btntoRight" VerticalAlignment="Top" Width="25" Click="btntoRight_Click"/>
        <Button Content="&lt;" Height="23" HorizontalAlignment="Left" Margin="168,114,0,0" Name="btntoLeft" VerticalAlignment="Top" Width="25" Click="btntoLeft_Click"/>
        <Button Content="&gt;&gt;" Height="23" HorizontalAlignment="Left" Margin="168,152,0,0" Name="btnAlltoRight" VerticalAlignment="Top" Width="25"  Click="btnAlltoRight_Click"/>
        <Button Content="&lt;&lt;" Height="23" HorizontalAlignment="Left" Margin="168,189,0,0" Name="btnAlltoLeft" VerticalAlignment="Top" Width="25" Click="btnAlltoLeft_Click"/>
        <Button Content="确定" Height="23" HorizontalAlignment="Left" Margin="90,269,0,0" Name="btnOK" IsDefault="True" VerticalAlignment="Top" Width="75" Click="btnOK_Click"/>
        <Button Content="取消" Height="23" HorizontalAlignment="Left" Margin="197,269,0,0" Name="btnCanel" IsCancel="True" VerticalAlignment="Top" Width="75" Click="btnCanel_Click"/>-->
        <Label Content="要对比的表为-->" Height="28" HorizontalAlignment="Left" Margin="12,1,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Label" Height="28" Foreground="Blue" HorizontalAlignment="Left" Margin="107,1,0,0" Name="lbTableName" VerticalAlignment="Top" />
    </Grid>
</dx:DXWindow>
